<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="FCK" uri="http://java.fckeditor.net" %>
<%@ page import="PhotoController.*,java.util.*, java.io.*,java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/css/photo.css">
<script>
function List(a){
	location.href="/KOMORIUTA/PhotoFreeAction.do?action=pt_free_list&nick="+a;
}
</script>
</head>
<%
String nick=(String)session.getAttribute("Mem_Nick");
PhotoFreeBean photoFreeBean=(PhotoFreeBean)session.getAttribute("photoFreeBean");
%>
<body>
<form action="PhotoFreeAction.do" method="post" name="pfmodify">
<input type="hidden" name="action" value="pt_free_modify" />
<input type="hidden" name="id" value="<%= photoFreeBean.getID() %>" />
<input type="hidden" name="nick" value="<%= nick %>" />
<div id="pt_body">
<table width="600" border=0 cellpadding=2 cellspacing=2> 
		<tr height="20">
			<td><b>タイトル</b></td>
			<td><input type="text" name="po_title" size="55" value="<%= photoFreeBean.getPo_Title() %>" /></td>
		</tr>
		<tr  height="20">
			<td><b>ユーザー名</b></td>
			<td><input type="text" name="po_nick" size="55" value="<%= photoFreeBean.getPo_Nick() %>" /></td>
		</tr>
		<tr height="300">
			<td colspan="2"><FCK:editor instanceName="po_contents"  toolbarSet="MyToolbarSet" height="450" value="<%=photoFreeBean.getPo_Contents() %>"></FCK:editor> </td>
		</tr>
		<tr><td colspan="2"><input type="button" value="list" onClick="List('<%=nick %>')" /><input type="submit"  value="확인" /></td></tr>
	</table>

</div>
</form>
</body>
</html>